//
//  FMPlayTableViewCell.m
//  XWZ_News_Work
//
//  Created by dllo on 16/1/12.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "FMPlayTableViewCell.h"
@implementation FMPlayTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubview];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    [self.labelTitle mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.top.mas_equalTo(@10);
        make.height.mas_equalTo(@10);
        make.left.equalTo(self.imageV.mas_right).with.offset(5);
        make.width.equalTo(self.contentView.mas_width).with.offset(30);
        
        
    }];
    
    
    
    [self.imageV mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.mas_equalTo(@10);
        make.height.mas_equalTo(@10);
        make.left.equalTo(self.contentView.mas_left).with.offset(5);
        make.width.mas_equalTo(@10);
    }];
    
    
    
}


- (void)createSubview
{
    self.backgroundColor = [UIColor whiteColor];
    
    self.labelTitle = [[UILabel alloc] init];
    [self.contentView addSubview:self.labelTitle];
    
    self.labelTime = [[UILabel alloc] init];
    self.labelTime.textAlignment = NSTextAlignmentLeft;
    [self.contentView addSubview:self.labelTime];
    
    self.imageV = [[UIImageView alloc] init];
    [self.contentView addSubview:self.imageV];
    


}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
